package com.caine.mybatis;


import com.caine.mybatis.config.AppConfig;
import com.caine.mybatis.service.TestService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class MybatisApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
        TestService bean = applicationContext.getBean(TestService.class);
        bean.doSomething();
    }
}
